package com.crazy.crazybusinessservice.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.crazy.crazybusinessservice.entity.BankcardRecord;
import com.crazy.crazybusinessservice.entity.ShareRecord;
import com.crazy.crazybusinessservice.mapper.BankCardRecordMapper;
import com.crazy.crazybusinessservice.mapper.ShareRecordMapper;
import com.crazy.crazybusinessservice.service.BankCardRecordService;
import com.crazy.crazybusinessservice.service.ShareRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class ShareRecordServiceImpl extends ServiceImpl<ShareRecordMapper, ShareRecord> implements ShareRecordService {


    @Autowired
    ShareRecordMapper shareRecordMapper;

    @Override
    public List<ShareRecord> findShareRecord(String bankcard, Integer productID, Date begin, Date end) {
        return shareRecordMapper.findShareRecord(bankcard,
                productID,begin,end
        );
    }
}
